#ifndef GLOBALS_H
#define GLOBALS_H

#include "unp.h"
#include <unistd.h>
#include <sys/socket.h>
#include <linux/netdevice.h>
#include <sys/ioctl.h>
#include <linux/if_arp.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <time.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include "hw_addrs.h"

#define MAX_IFS 256
#define PROTOCOL_VAL 0xf55d
#define IPSIZE 16
#define MAC_LEN 6
#define CUSTOM_SUN_PATH "/home/rnanda/serverDomainSocket"
#define REQ_RECV_MESS_LEN 2*IPSIZE + ETH_ALEN + sizeof(int) + 30;

typedef struct req_recv_message {
	int broadcastid;
        char destip[IPSIZE];
        char sourceip[IPSIZE];
	char sourcemac[ETH_ALEN];
	char message[30];
}message;

typedef struct RREQ_id {
        int broadcastid;
        char sourceip[IPSIZE];
}rreqid;

typedef struct rreq_id_list_struct {
        rreqid *recv_req;
        struct rreq_id_list_struct *next;
}rreq_id_list;

#endif /* GLOBALS_H */
